home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
smaltalk
/
st80_pr4.lha
/
st80_pre4
/
Foible
/
foible
/
InputSensor.st
< prev
next >
Wrap
Text File
|
1993-07-24
|
462b
|
19 lines
'From Tektronix Smalltalk-80 version T2.2.0cM3, of September 21, 1987 on 10 April 1990 at 11:53:44 pm'!
!InputSensor methodsFor: 'mouse'!
follow: changeBlock doing: actionBlock
| previous next |
previous _ changeBlock value: self cursorPoint.
[self anyButtonPressed] whileTrue:
[next _ changeBlock value: self cursorPoint.
next ~= previous
ifTrue:
[actionBlock value: previous value: next.
previous _ next].
Processor yield].
^next! !